﻿@model EdexApiClient.InvoiceLines

<form name="INVOICE_LINE" class="form-horizontal" method="post"> 
    <fieldset> 

        <input type="hidden" name="GUID_RECORD" value="@Model.GUID_RECORD.ToString()" />
        <input type="hidden" name="INVOICE_GUID" value="@Model.INVOICE_GUID" />
        <input type="hidden" name="ITEM_GUID" value="@Model.ITEM_GUID" />
        
        <div class="container-fluid">
            <div class="row-fluid">

                <div class="span6">

                    <div class="control-group"> 
                        <label class="control-label" for="ITEM_NAME">Товар</label>
                        <div class="controls">
                            <div class="input-append">
                                <input type="text" class="input-xlarge" name="ITEM_NAME" value="@(Model.ITEM != null ? Model.ITEM.ITEM_NAME : String.Empty)" placeholder="введите наименование товара" readonly="readonly" />
                                <a href="javascript:void(0);" class="btn" data-index="@Model.GUID_RECORD" data-action="setItemMapping"><i class="icon-edit"></i></a>
                            </div> 
                        </div> 
                    </div> 

                    <div class="row-fluid">

                        <div class="span5">
                            <div class="control-group"> 
                                <label class="control-label" for="QUANTITY">Количество</label>
                                <div class="controls">
                                    <input type="text" class="input-small" name="QUANTITY" value="@Model.QUANTITY" readonly="readonly" />
                                </div> 
                            </div> 
                        </div>

                        <div class="span5">
                            <div class="control-group"> 
                                <label class="control-label" for="PRICE">Цена</label>
                                <div class="controls">
                                    <input type="text" class="input-small" name="PRICE"  value="@Model.PRICE" readonly="readonly" />
                                </div> 
                            </div> 
                        </div> 

                    </div>

                    <div class="row-fluid">

                        <div class="span5">
                            <div class="control-group"> 
                                <label class="control-label" for="TOTAL">Сумма</label>
                                <div class="controls">
                                    <input type="text" class="input-small" name="TOTAL" value="@Model.TOTAL" readonly="readonly" />
                                </div> 
                            </div> 
                        </div> 

                        <div class="span5">                
                            <div class="control-group"> 
                                <label class="control-label" for="TAXTOTAL">Налог</label>
                                <div class="controls">
                                    <input type="text" class="input-small" name="TAX_TOTAL" value="@Model.TAX_TOTAL" readonly="readonly" />
                                </div> 
                            </div> 
                        </div>

                    </div>
                
                </div>

            </div>
        </div>

    </fieldset>
</form>